package com.lin.bootstudy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.lin.bootstudy.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;


@Mapper
public interface UserDao extends BaseMapper<User>{

    @Select("select * from user where id=#{id}")
    public User selectById(@PathVariable Integer id);

}
